package com.ylbh.modules.member.controller;

import com.aliyuncs.CommonRequest;
import com.ylbh.common.pojo.goods.vo.GoodsDetailsVO;
import com.ylbh.common.pojo.member.dto.GoodsBrowseDTO;
import com.ylbh.common.pojo.member.vo.ShoppingGoodsBrowseVO;
import com.ylbh.common.utils.CommonResult;
import com.ylbh.common.utils.PageUtils;
import com.ylbh.common.utils.Ref;
import com.ylbh.modules.member.service.ShoppingBrowseService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: wjc
 * @date: 2019/11/19 11:25
 * 浏览足迹
 */
@RestController
@RequestMapping("browse")
public class ShoppingGoodsBrowseController {

    @Autowired
    private ShoppingBrowseService shoppingBrowseService;

    @GetMapping("getShoppingBrowseById/{id}")
    @ApiOperation("根据ID查询足迹表信息")
    public CommonResult<List<ShoppingGoodsBrowseVO>> getShoppingBrowseById(@PathVariable String id) {
        List<ShoppingGoodsBrowseVO> voList = shoppingBrowseService.getShoppingBrowseById(id);
        return Ref.ok(voList);
    }
}
